package cn.com.klun.tjy.other.redisTest;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.Pipeline;

import java.util.List;

public class RedisPiperline {
    public void mdel(List<String> keys){
        Jedis jedis = new Jedis();
        Pipeline pipelined = jedis.pipelined();
        for(String key : keys){
            pipelined.del(key);
        }
        pipelined.sync();
    }
}
